<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span>
</span><span id="line-2"></span><span class="hs-comment">-- | A description of the register set of the X86.</span><span>
</span><span id="line-3"></span><span class="hs-comment">--</span><span>
</span><span id="line-4"></span><span class="hs-comment">--   This isn't used directly in GHC proper.</span><span>
</span><span id="line-5"></span><span class="hs-comment">--</span><span>
</span><span id="line-6"></span><span class="hs-comment">--   See RegArchBase.hs for the reference.</span><span>
</span><span id="line-7"></span><span class="hs-comment">--   See MachRegs.hs for the actual trivColorable function used in GHC.</span><span>
</span><span id="line-8"></span><span class="hs-comment">--</span><span>
</span><span id="line-9"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.CmmToAsm.Reg.Graph.X86</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-10"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#classOfReg"><span class="hs-identifier">classOfReg</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-11"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regsOfClass"><span class="hs-identifier">regsOfClass</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-12"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regName"><span class="hs-identifier">regName</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-13"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regAlias"><span class="hs-identifier">regAlias</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-14"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#worst"><span class="hs-identifier">worst</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-15"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#squeese"><span class="hs-identifier">squeese</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-16"></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-17"></span><span>
</span><span id="line-18"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Prelude.html"><span class="hs-identifier">GHC.Prelude</span></a></span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html"><span class="hs-identifier">GHC.CmmToAsm.Reg.Graph.Base</span></a></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier">Reg</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier">RegSub</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegClass"><span class="hs-identifier">RegClass</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span class="hs-special">)</span><span>
</span><span id="line-21"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Types.Unique.Set.html"><span class="hs-identifier">GHC.Types.Unique.Set</span></a></span><span>
</span><span id="line-22"></span><span>
</span><span id="line-23"></span><span class="hs-keyword">import</span><span> </span><span class="hs-keyword">qualified</span><span> </span><span class="annot"><a href="../../array/src/Data.Array.html#"><span class="hs-identifier">Data.Array</span></a></span><span> </span><span class="hs-keyword">as</span><span> </span><span class="annot"><span class="hs-identifier">A</span></span><span>
</span><span id="line-24"></span><span>
</span><span id="line-25"></span><span>
</span><span id="line-26"></span><span class="hs-comment">-- | Determine the class of a register</span><span>
</span><span id="line-27"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#classOfReg"><span class="hs-identifier hs-type">classOfReg</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegClass"><span class="hs-identifier hs-type">RegClass</span></a></span><span>
</span><span id="line-28"></span><span id="classOfReg"><span class="annot"><span class="annottext">classOfReg :: Reg -&gt; RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.X86.html#classOfReg"><span class="hs-identifier hs-var hs-var">classOfReg</span></a></span></span><span> </span><span id="local-6989586621680942027"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680942027"><span class="hs-identifier hs-var">reg</span></a></span></span><span>
</span><span id="line-29"></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680942027"><span class="hs-identifier hs-var">reg</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-30"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span id="local-6989586621680942025"><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680942025"><span class="hs-identifier hs-var">c</span></a></span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680942025"><span class="hs-identifier hs-var">c</span></a></span><span>
</span><span id="line-31"></span><span>
</span><span id="line-32"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL16"><span class="hs-identifier hs-var">SubL16</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG16"><span class="hs-identifier hs-var">ClassG16</span></a></span><span>
</span><span id="line-33"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8"><span class="hs-identifier hs-var">SubL8</span></a></span><span>  </span><span class="annot"><span class="annottext">Reg
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG8"><span class="hs-identifier hs-var">ClassG8</span></a></span><span>
</span><span id="line-34"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8H"><span class="hs-identifier hs-var">SubL8H</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG8"><span class="hs-identifier hs-var">ClassG8</span></a></span><span>
</span><span id="line-35"></span><span>
</span><span id="line-36"></span><span>
</span><span id="line-37"></span><span class="hs-comment">-- | Determine all the regs that make up a certain class.</span><span>
</span><span id="line-38"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regsOfClass"><span class="hs-identifier hs-type">regsOfClass</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegClass"><span class="hs-identifier hs-type">RegClass</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Unique.Set.html#UniqSet"><span class="hs-identifier hs-type">UniqSet</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span>
</span><span id="line-39"></span><span id="regsOfClass"><span class="annot"><span class="annottext">regsOfClass :: RegClass -&gt; UniqSet Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regsOfClass"><span class="hs-identifier hs-var hs-var">regsOfClass</span></a></span></span><span> </span><span id="local-6989586621680942018"><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680942018"><span class="hs-identifier hs-var">c</span></a></span></span><span>
</span><span id="line-40"></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680942018"><span class="hs-identifier hs-var">c</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-41"></span><span>        </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span>
</span><span id="line-42"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span>   </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">RegClass -&gt; Int -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-var">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span>  </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942015"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-43"></span><span>                        </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621680942015"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942015"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">7</span></span><span class="hs-special">]</span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-44"></span><span>
</span><span id="line-45"></span><span>        </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG16"><span class="hs-identifier hs-var">ClassG16</span></a></span><span>
</span><span id="line-46"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span>   </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL16"><span class="hs-identifier hs-var">SubL16</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegClass -&gt; Int -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-var">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942014"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-47"></span><span>                        </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621680942014"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942014"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">7</span></span><span class="hs-special">]</span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-48"></span><span>
</span><span id="line-49"></span><span>        </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG8"><span class="hs-identifier hs-var">ClassG8</span></a></span><span>
</span><span id="line-50"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">UniqSet Reg -&gt; UniqSet Reg -&gt; UniqSet Reg
forall a. UniqSet a -&gt; UniqSet a -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#unionUniqSets"><span class="hs-identifier hs-var">unionUniqSets</span></a></span><span>
</span><span id="line-51"></span><span>                </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8"><span class="hs-identifier hs-var">SubL8</span></a></span><span>  </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegClass -&gt; Int -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-var">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942012"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621680942012"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942012"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">3</span></span><span class="hs-special">]</span><span> </span><span class="hs-special">]</span><span class="hs-special">)</span><span>
</span><span id="line-52"></span><span>                </span><span class="hs-special">(</span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8H"><span class="hs-identifier hs-var">SubL8H</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">RegClass -&gt; Int -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-var">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942011"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621680942011"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942011"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">3</span></span><span class="hs-special">]</span><span> </span><span class="hs-special">]</span><span class="hs-special">)</span><span>
</span><span id="line-53"></span><span>
</span><span id="line-54"></span><span>        </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassF64"><span class="hs-identifier hs-var">ClassF64</span></a></span><span>
</span><span id="line-55"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span>   </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">RegClass -&gt; Int -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-var">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassF64"><span class="hs-identifier hs-var">ClassF64</span></a></span><span>  </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942009"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-56"></span><span>                        </span><span class="hs-glyph">|</span><span> </span><span id="local-6989586621680942009"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942009"><span class="hs-identifier hs-var">i</span></a></span></span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-special">[</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-glyph">..</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">5</span></span><span class="hs-special">]</span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-57"></span><span>
</span><span id="line-58"></span><span>
</span><span id="line-59"></span><span class="hs-comment">-- | Determine the common name of a reg</span><span>
</span><span id="line-60"></span><span class="hs-comment">--      returns Nothing if this reg is not part of the machine.</span><span>
</span><span id="line-61"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regName"><span class="hs-identifier hs-type">regName</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.Maybe.html#Maybe"><span class="hs-identifier hs-type">Maybe</span></a></span><span> </span><span class="annot"><a href="../../base/src/GHC.Base.html#String"><span class="hs-identifier hs-type">String</span></a></span><span>
</span><span id="line-62"></span><span id="regName"><span class="annot"><span class="annottext">regName :: Reg -&gt; Maybe String
</span><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regName"><span class="hs-identifier hs-var hs-var">regName</span></a></span></span><span> </span><span id="local-6989586621680942008"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680942008"><span class="hs-identifier hs-var">reg</span></a></span></span><span>
</span><span id="line-63"></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680942008"><span class="hs-identifier hs-var">reg</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-64"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span id="local-6989586621680942007"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942007"><span class="hs-identifier hs-var">i</span></a></span></span><span>
</span><span id="line-65"></span><span>         </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942007"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">7</span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-66"></span><span>           </span><span class="hs-keyword">let</span><span> </span><span id="local-6989586621680942002"><span class="annot"><span class="annottext">names :: Array Int String
</span><a href="#local-6989586621680942002"><span class="hs-identifier hs-var hs-var">names</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Int, Int) -&gt; [String] -&gt; Array Int String
forall i e. Ix i =&gt; (i, i) -&gt; [e] -&gt; Array i e
</span><a href="../../base/src/GHC.Arr.html#listArray"><span class="hs-identifier hs-var">A.listArray</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span class="hs-special">)</span><span>
</span><span id="line-67"></span><span>                       </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;eax&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;ebx&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;ecx&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;edx&quot;</span></span><span>
</span><span id="line-68"></span><span>                       </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;ebp&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;esi&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;edi&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;esp&quot;</span></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-69"></span><span>           </span><span class="hs-keyword">in</span><span> </span><span class="annot"><span class="annottext">String -&gt; Maybe String
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; Maybe String) -&gt; String -&gt; Maybe String
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Array Int String
</span><a href="#local-6989586621680942002"><span class="hs-identifier hs-var">names</span></a></span><span> </span><span class="annot"><span class="annottext">Array Int String -&gt; Int -&gt; String
forall i e. Ix i =&gt; Array i e -&gt; i -&gt; e
</span><a href="../../base/src/GHC.Arr.html#%21"><span class="hs-operator hs-var">A.!</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680942007"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-70"></span><span>
</span><span id="line-71"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL16"><span class="hs-identifier hs-var">SubL16</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span id="local-6989586621680941999"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941999"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-72"></span><span>         </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941999"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">7</span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-73"></span><span>           </span><span class="hs-keyword">let</span><span> </span><span id="local-6989586621680941995"><span class="annot"><span class="annottext">names :: Array Int String
</span><a href="#local-6989586621680941995"><span class="hs-identifier hs-var hs-var">names</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Int, Int) -&gt; [String] -&gt; Array Int String
forall i e. Ix i =&gt; (i, i) -&gt; [e] -&gt; Array i e
</span><a href="../../base/src/GHC.Arr.html#listArray"><span class="hs-identifier hs-var">A.listArray</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span class="hs-special">)</span><span>
</span><span id="line-74"></span><span>                       </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;ax&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;bx&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;cx&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;dx&quot;</span></span><span>
</span><span id="line-75"></span><span>                       </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;bp&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;si&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;di&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;sp&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-76"></span><span>           </span><span class="hs-keyword">in</span><span> </span><span class="annot"><span class="annottext">String -&gt; Maybe String
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; Maybe String) -&gt; String -&gt; Maybe String
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Array Int String
</span><a href="#local-6989586621680941995"><span class="hs-identifier hs-var">names</span></a></span><span> </span><span class="annot"><span class="annottext">Array Int String -&gt; Int -&gt; String
forall i e. Ix i =&gt; Array i e -&gt; i -&gt; e
</span><a href="../../base/src/GHC.Arr.html#%21"><span class="hs-operator hs-var">A.!</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941999"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-77"></span><span>
</span><span id="line-78"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8"><span class="hs-identifier hs-var">SubL8</span></a></span><span>  </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span id="local-6989586621680941994"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941994"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-79"></span><span>         </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941994"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">3</span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-80"></span><span>           </span><span class="hs-keyword">let</span><span> </span><span id="local-6989586621680941990"><span class="annot"><span class="annottext">names :: Array Int String
</span><a href="#local-6989586621680941990"><span class="hs-identifier hs-var hs-var">names</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Int, Int) -&gt; [String] -&gt; Array Int String
forall i e. Ix i =&gt; (i, i) -&gt; [e] -&gt; Array i e
</span><a href="../../base/src/GHC.Arr.html#listArray"><span class="hs-identifier hs-var">A.listArray</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;al&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;bl&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;cl&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;dl&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-81"></span><span>           </span><span class="hs-keyword">in</span><span> </span><span class="annot"><span class="annottext">String -&gt; Maybe String
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; Maybe String) -&gt; String -&gt; Maybe String
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Array Int String
</span><a href="#local-6989586621680941990"><span class="hs-identifier hs-var">names</span></a></span><span> </span><span class="annot"><span class="annottext">Array Int String -&gt; Int -&gt; String
forall i e. Ix i =&gt; Array i e -&gt; i -&gt; e
</span><a href="../../base/src/GHC.Arr.html#%21"><span class="hs-operator hs-var">A.!</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941994"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-82"></span><span>
</span><span id="line-83"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8H"><span class="hs-identifier hs-var">SubL8H</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span id="local-6989586621680941989"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941989"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">)</span><span>
</span><span id="line-84"></span><span>         </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941989"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">3</span></span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-85"></span><span>           </span><span class="hs-keyword">let</span><span> </span><span id="local-6989586621680941985"><span class="annot"><span class="annottext">names :: Array Int String
</span><a href="#local-6989586621680941985"><span class="hs-identifier hs-var hs-var">names</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">(Int, Int) -&gt; [String] -&gt; Array Int String
forall i e. Ix i =&gt; (i, i) -&gt; [e] -&gt; Array i e
</span><a href="../../base/src/GHC.Arr.html#listArray"><span class="hs-identifier hs-var">A.listArray</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span class="hs-special">,</span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span class="hs-special">)</span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;ah&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;bh&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;ch&quot;</span></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;dh&quot;</span></span><span class="hs-special">]</span><span>
</span><span id="line-86"></span><span>           </span><span class="hs-keyword">in</span><span> </span><span class="annot"><span class="annottext">String -&gt; Maybe String
forall a. a -&gt; Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Just"><span class="hs-identifier hs-var">Just</span></a></span><span> </span><span class="annot"><span class="annottext">(String -&gt; Maybe String) -&gt; String -&gt; Maybe String
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Array Int String
</span><a href="#local-6989586621680941985"><span class="hs-identifier hs-var">names</span></a></span><span> </span><span class="annot"><span class="annottext">Array Int String -&gt; Int -&gt; String
forall i e. Ix i =&gt; Array i e -&gt; i -&gt; e
</span><a href="../../base/src/GHC.Arr.html#%21"><span class="hs-operator hs-var">A.!</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941989"><span class="hs-identifier hs-var">i</span></a></span><span>
</span><span id="line-87"></span><span>
</span><span id="line-88"></span><span>        </span><span class="annot"><span class="annottext">Reg
</span><span class="hs-identifier">_</span></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Maybe String
forall a. Maybe a
</span><a href="../../base/src/GHC.Maybe.html#Nothing"><span class="hs-identifier hs-var">Nothing</span></a></span><span>
</span><span id="line-89"></span><span>
</span><span id="line-90"></span><span>
</span><span id="line-91"></span><span class="hs-comment">-- | Which regs alias what other regs.</span><span>
</span><span id="line-92"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regAlias"><span class="hs-identifier hs-type">regAlias</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.Types.Unique.Set.html#UniqSet"><span class="hs-identifier hs-type">UniqSet</span></a></span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span>
</span><span id="line-93"></span><span id="regAlias"><span class="annot"><span class="annottext">regAlias :: Reg -&gt; UniqSet Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regAlias"><span class="hs-identifier hs-var hs-var">regAlias</span></a></span></span><span> </span><span id="local-6989586621680941984"><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941984"><span class="hs-identifier hs-var">reg</span></a></span></span><span>
</span><span id="line-94"></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941984"><span class="hs-identifier hs-var">reg</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-95"></span><span>
</span><span id="line-96"></span><span>        </span><span class="hs-comment">-- 32 bit regs alias all of the subregs</span><span>
</span><span id="line-97"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span id="local-6989586621680941983"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941983"><span class="hs-identifier hs-var">i</span></a></span></span><span>
</span><span id="line-98"></span><span>
</span><span id="line-99"></span><span>         </span><span class="hs-comment">-- for eax, ebx, ecx, eds</span><span>
</span><span id="line-100"></span><span>         </span><span class="hs-glyph">|</span><span>  </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941983"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">3</span></span><span>
</span><span id="line-101"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span>
</span><span id="line-102"></span><span>         </span><span class="annot"><span class="annottext">([Reg] -&gt; UniqSet Reg) -&gt; [Reg] -&gt; UniqSet Reg
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">RegClass -&gt; Int -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-var">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941983"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">,</span><span>   </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL16"><span class="hs-identifier hs-var">SubL16</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941984"><span class="hs-identifier hs-var">reg</span></a></span><span>
</span><span id="line-103"></span><span>           </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8"><span class="hs-identifier hs-var">SubL8</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941984"><span class="hs-identifier hs-var">reg</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8H"><span class="hs-identifier hs-var">SubL8H</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941984"><span class="hs-identifier hs-var">reg</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-104"></span><span>
</span><span id="line-105"></span><span>         </span><span class="hs-comment">-- for esi, edi, esp, ebp</span><span>
</span><span id="line-106"></span><span>         </span><span class="hs-glyph">|</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941983"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Bool -&gt; Bool
</span><span class="hs-operator hs-var">&amp;&amp;</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941983"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Bool
forall a. Ord a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">&lt;=</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">7</span></span><span>
</span><span id="line-107"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span>
</span><span id="line-108"></span><span>         </span><span class="annot"><span class="annottext">([Reg] -&gt; UniqSet Reg) -&gt; [Reg] -&gt; UniqSet Reg
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">RegClass -&gt; Int -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-var">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941983"><span class="hs-identifier hs-var">i</span></a></span><span class="hs-special">,</span><span>   </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL16"><span class="hs-identifier hs-var">SubL16</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941984"><span class="hs-identifier hs-var">reg</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-109"></span><span>
</span><span id="line-110"></span><span>        </span><span class="hs-comment">-- 16 bit subregs alias the whole reg</span><span>
</span><span id="line-111"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL16"><span class="hs-identifier hs-var">SubL16</span></a></span><span> </span><span id="local-6989586621680941981"><span class="annot"><span class="annottext">r :: Reg
</span><a href="#local-6989586621680941981"><span class="hs-identifier hs-var">r</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span>
</span><span id="line-112"></span><span>         </span><span class="hs-glyph">-&gt;</span><span>     </span><span class="annot"><span class="annottext">Reg -&gt; UniqSet Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.X86.html#regAlias"><span class="hs-identifier hs-var">regAlias</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941981"><span class="hs-identifier hs-var">r</span></a></span><span>
</span><span id="line-113"></span><span>
</span><span id="line-114"></span><span>        </span><span class="hs-comment">-- 8 bit subregs alias the 32 and 16, but not the other 8 bit subreg</span><span>
</span><span id="line-115"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8"><span class="hs-identifier hs-var">SubL8</span></a></span><span>  </span><span id="local-6989586621680941980"><span class="annot"><span class="annottext">r :: Reg
</span><a href="#local-6989586621680941980"><span class="hs-identifier hs-var">r</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span>
</span><span id="line-116"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span> </span><span class="annot"><span class="annottext">([Reg] -&gt; UniqSet Reg) -&gt; [Reg] -&gt; UniqSet Reg
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941980"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL16"><span class="hs-identifier hs-var">SubL16</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941980"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8"><span class="hs-identifier hs-var">SubL8</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941980"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-117"></span><span>
</span><span id="line-118"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-type">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8H"><span class="hs-identifier hs-var">SubL8H</span></a></span><span> </span><span id="local-6989586621680941979"><span class="annot"><span class="annottext">r :: Reg
</span><a href="#local-6989586621680941979"><span class="hs-identifier hs-var">r</span></a></span></span><span class="hs-glyph">@</span><span class="hs-special">(</span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span class="hs-special">)</span><span>
</span><span id="line-119"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">[Reg] -&gt; UniqSet Reg
forall a. Uniquable a =&gt; [a] -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#mkUniqSet"><span class="hs-identifier hs-var">mkUniqSet</span></a></span><span> </span><span class="annot"><span class="annottext">([Reg] -&gt; UniqSet Reg) -&gt; [Reg] -&gt; UniqSet Reg
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941979"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL16"><span class="hs-identifier hs-var">SubL16</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941979"><span class="hs-identifier hs-var">r</span></a></span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">RegSub -&gt; Reg -&gt; Reg
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegSub"><span class="hs-identifier hs-var">RegSub</span></a></span><span> </span><span class="annot"><span class="annottext">RegSub
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#SubL8H"><span class="hs-identifier hs-var">SubL8H</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941979"><span class="hs-identifier hs-var">r</span></a></span><span> </span><span class="hs-special">]</span><span>
</span><span id="line-120"></span><span>
</span><span id="line-121"></span><span>        </span><span class="hs-comment">-- fp</span><span>
</span><span id="line-122"></span><span>        </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#Reg"><span class="hs-identifier hs-type">Reg</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassF64"><span class="hs-identifier hs-var">ClassF64</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-identifier">_</span></span><span>
</span><span id="line-123"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Reg -&gt; UniqSet Reg
forall a. Uniquable a =&gt; a -&gt; UniqSet a
</span><a href="GHC.Types.Unique.Set.html#unitUniqSet"><span class="hs-identifier hs-var">unitUniqSet</span></a></span><span> </span><span class="annot"><span class="annottext">Reg
</span><a href="#local-6989586621680941984"><span class="hs-identifier hs-var">reg</span></a></span><span>
</span><span id="line-124"></span><span>
</span><span id="line-125"></span><span>        </span><span class="annot"><span class="annottext">Reg
</span><span class="hs-identifier">_</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">String -&gt; UniqSet Reg
forall a. HasCallStack =&gt; String -&gt; a
</span><a href="../../base/src/GHC.Err.html#error"><span class="hs-identifier hs-var">error</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;regAlias: invalid register&quot;</span></span><span>
</span><span id="line-126"></span><span>
</span><span id="line-127"></span><span>
</span><span id="line-128"></span><span class="hs-comment">-- | Optimised versions of RegColorBase.{worst, squeese} specific to x86</span><span>
</span><span id="line-129"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#worst"><span class="hs-identifier hs-type">worst</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegClass"><span class="hs-identifier hs-type">RegClass</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegClass"><span class="hs-identifier hs-type">RegClass</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-130"></span><span id="worst"><span class="annot"><span class="annottext">worst :: Int -&gt; RegClass -&gt; RegClass -&gt; Int
</span><a href="GHC.CmmToAsm.Reg.Graph.X86.html#worst"><span class="hs-identifier hs-var hs-var">worst</span></a></span></span><span> </span><span id="local-6989586621680941976"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span></span><span> </span><span id="local-6989586621680941975"><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941975"><span class="hs-identifier hs-var">classN</span></a></span></span><span> </span><span id="local-6989586621680941974"><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941974"><span class="hs-identifier hs-var">classC</span></a></span></span><span>
</span><span id="line-131"></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941975"><span class="hs-identifier hs-var">classN</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-132"></span><span>        </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span>
</span><span id="line-133"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941974"><span class="hs-identifier hs-var">classC</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-134"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-135"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG16"><span class="hs-identifier hs-var">ClassG16</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-136"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG8"><span class="hs-identifier hs-var">ClassG8</span></a></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span>
</span><span id="line-137"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassF64"><span class="hs-identifier hs-var">ClassF64</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span>
</span><span id="line-138"></span><span>
</span><span id="line-139"></span><span>        </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG16"><span class="hs-identifier hs-var">ClassG16</span></a></span><span>
</span><span id="line-140"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941974"><span class="hs-identifier hs-var">classC</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-141"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-142"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG16"><span class="hs-identifier hs-var">ClassG16</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-143"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG8"><span class="hs-identifier hs-var">ClassG8</span></a></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">4</span></span><span>
</span><span id="line-144"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassF64"><span class="hs-identifier hs-var">ClassF64</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span>
</span><span id="line-145"></span><span>
</span><span id="line-146"></span><span>        </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG8"><span class="hs-identifier hs-var">ClassG8</span></a></span><span>
</span><span id="line-147"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941974"><span class="hs-identifier hs-var">classC</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-148"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG32"><span class="hs-identifier hs-var">ClassG32</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">2</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-149"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG16"><span class="hs-identifier hs-var">ClassG16</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">2</span></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-150"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassG8"><span class="hs-identifier hs-var">ClassG8</span></a></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">8</span></span><span>
</span><span id="line-151"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassF64"><span class="hs-identifier hs-var">ClassF64</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span>
</span><span id="line-152"></span><span>
</span><span id="line-153"></span><span>        </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassF64"><span class="hs-identifier hs-var">ClassF64</span></a></span><span>
</span><span id="line-154"></span><span>         </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">case</span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941974"><span class="hs-identifier hs-var">classC</span></a></span><span> </span><span class="hs-keyword">of</span><span>
</span><span id="line-155"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><a href="GHC.CmmToAsm.Reg.Graph.Base.html#ClassF64"><span class="hs-identifier hs-var">ClassF64</span></a></span><span>        </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; Int -&gt; Int
forall a. Ord a =&gt; a -&gt; a -&gt; a
</span><span class="hs-identifier hs-var">min</span></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941976"><span class="hs-identifier hs-var">n</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">6</span></span><span>
</span><span id="line-156"></span><span>                </span><span class="annot"><span class="annottext">RegClass
</span><span class="hs-identifier">_</span></span><span>               </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int
</span><span class="hs-number">0</span></span><span>
</span><span id="line-157"></span><span>
</span><span id="line-158"></span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.X86.html#squeese"><span class="hs-identifier hs-type">squeese</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegClass"><span class="hs-identifier hs-type">RegClass</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">[</span><span class="hs-special">(</span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span class="hs-special">,</span><span> </span><span class="annot"><a href="GHC.CmmToAsm.Reg.Graph.Base.html#RegClass"><span class="hs-identifier hs-type">RegClass</span></a></span><span class="hs-special">)</span><span class="hs-special">]</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Int</span></span><span>
</span><span id="line-159"></span><span id="squeese"><span class="annot"><span class="annottext">squeese :: RegClass -&gt; [(Int, RegClass)] -&gt; Int
</span><a href="GHC.CmmToAsm.Reg.Graph.X86.html#squeese"><span class="hs-identifier hs-var hs-var">squeese</span></a></span></span><span> </span><span id="local-6989586621680941971"><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941971"><span class="hs-identifier hs-var">classN</span></a></span></span><span> </span><span id="local-6989586621680941970"><span class="annot"><span class="annottext">[(Int, RegClass)]
</span><a href="#local-6989586621680941970"><span class="hs-identifier hs-var">countCs</span></a></span></span><span>
</span><span id="line-160"></span><span>        </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">[Int] -&gt; Int
forall (t :: * -&gt; *) a. (Foldable t, Num a) =&gt; t a -&gt; a
</span><a href="../../base/src/Data.Foldable.html#sum"><span class="hs-identifier hs-var">sum</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">((Int, RegClass) -&gt; Int) -&gt; [(Int, RegClass)] -&gt; [Int]
forall a b. (a -&gt; b) -&gt; [a] -&gt; [b]
</span><a href="../../base/src/GHC.Base.html#map"><span class="hs-identifier hs-var">map</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-glyph">\</span><span class="hs-special">(</span><span id="local-6989586621680941968"><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941968"><span class="hs-identifier hs-var">i</span></a></span></span><span class="hs-special">,</span><span> </span><span id="local-6989586621680941967"><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941967"><span class="hs-identifier hs-var">classC</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><span class="annottext">Int -&gt; RegClass -&gt; RegClass -&gt; Int
</span><a href="GHC.CmmToAsm.Reg.Graph.X86.html#worst"><span class="hs-identifier hs-var">worst</span></a></span><span> </span><span class="annot"><span class="annottext">Int
</span><a href="#local-6989586621680941968"><span class="hs-identifier hs-var">i</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941971"><span class="hs-identifier hs-var">classN</span></a></span><span> </span><span class="annot"><span class="annottext">RegClass
</span><a href="#local-6989586621680941967"><span class="hs-identifier hs-var">classC</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">[(Int, RegClass)]
</span><a href="#local-6989586621680941970"><span class="hs-identifier hs-var">countCs</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-161"></span><span>
</span><span id="line-162"></span></pre></body></html>